-
Notifications
You must be signed in to change notification settings - Fork 78
Add class for custom transforms to adapter, similar to LambdaTransform.
#399
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add class for custom transforms to adapter, similar to LambdaTransform.
#399
Conversation
This commit reintroduces the features that were present in `LambdaTransform`, but only allowing registered functions. While being stricter, that allows for closer scaffolding and raising errors early on, so that users cannot provide functions that will not be (de)serializable later on. As there are a few failure modes, the focus is on providing detailed error messages to enable users to solve problems without external help.
Codecov ReportAttention: Patch coverage is
|
LarsKue
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very awesome changes, thank you for covering this so thoroughly!
I do see the need for some minor changes, particularly in the tests. See individual comments.
|
Thanks a lot for the review, I have addressed your comments. The tests are currently failing because I pulled in the changes from |
|
@vpratz Yes, dev is now fixed. Can you please merge dev into this again and if tests pass, merge? |
Closes #362.
This PR reintroduces the features that were present in
LambdaTransform, but only allowing registered functions. While being stricter, this allows for closer scaffolding and raising errors early on, so that users cannot provide functions that will not be (de)serializable later on.As there are a few failure modes, the focus is on providing detailed error messages to enable users to solve problems without external help.
Open questions:
serializable_forward/inverse_fntoforward/inverseagain. What do you think?Adapter, as it helps in easily providing the user with theFilterTransformfunctionality. Is this ok with you, @LarsKue